package com.process;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.core.env.Environment;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication(scanBasePackages = {"com.process", "com.system", "com.flowable", "com.common","com.generator","com.core"})
@MapperScan(basePackages = {"com.system.mapper", "com.flowable.mapper","com.generator.mapper","com.core"})
@EnableCaching
@EnableWebMvc
public class ServerApplication {
    private static final Logger LOG = LoggerFactory.getLogger(ServerApplication.class);
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(ServerApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        Environment env = app.run(args).getEnvironment();
        LOG.info("启动成功！！");
        LOG.info("Process地址: \thttp://127.0.0.1:{}", env.getProperty("server.port"));
    }

}
